import Vue from 'vue'
import Router from 'vue-router'
import test from '@/components/test'
import User from '@/components/User'
import Books from '@/components/Books'
import Login from '@/components/Login'
import Cart from "../components/Cart";
import mytest from "../components/mytest";

Vue.use(Router)


var routes = [
        {
          path:'/',
          name:'test',
          component:test
        },
          {
          path:'/user',
          name:'User',
          component:User
        },
            {
          path:'/books',
          name:'Books',
          component:Books
        },
        {
          path:'/login',
          name:'Login',
          component:Login
        },
        {
          path:'/cart',
          name:'Cart',
          component:Cart
        },
          {
          path:'/mytest',
          name:'mytest',
          component:mytest
        },



]

export default new Router({
  routes:routes,
  mode:'history'   /*hash*/
})
